<?php
namespace app\home\controller;

//use app\admin\model\Menus;
//use app\admin\model\Campus;
//use app\admin\model\Student;
//use app\admin\model\Classes;
//use app\admin\model\Teacher;
require '/vendor/qiniu/autoload.php';
use think\Controller;
use think\Db;

use Qiniu\Auth;
$bucket = 'nanyibucketby2017year';
$accessKey = '62pzsS8cWNBVDOVRxhJNejBzQCbCkAKIS5Oy0lOn';
$secretKey = '5HvPUZ0EzObz9z261EK5AuJntP5OT0_LV9ScDNnv';
$auth = new \Auth($accessKey, $secretKey);echo 1;die;
$upToken = $auth->uploadToken($bucket);
echo $upToken;die;

/**
 * 后台主页
 * Class IndexController
 * Author ghostsf
 * Blog www.ghostsf.com
 * @package app\admin\controller
 */
class QiniuController extends CommonController
{
    /**
     *
     * @return mixed
     */
    public function index()
    {
        echo 1;die;

    }
    public function test()
    {
        echo 1;die;

    }



}
